<div id="fixed-nav" class="row-fluid">
		<div class="navbar">
			<div class="navbar-inner">
				<div class="grid-960">
					<ul class="nav">
					<li class="inner-nav" id="trigger">
                        <a href="#" >
                            <img src="<?php echo base_url().'assets/themes/pinoytuner/images/menu.png';?>" />
                            <div id="sub-navigation">
                                <div style="padding-top:10px;" class="sub-nav">
                                    <a href="<?php echo base_url(); ?>digradio">Digradio</a>
                                    <a href="<?php echo base_url(); ?>planetjazz">Planetjazz</a>
                                    <a href="<?php echo base_url(); ?>riceradio">Riceradio</a>
                                    <a href="<?php echo base_url(); ?>yoradio">Yoradio</a>
                                    <hr />
                                    <?php if(isset($logged_in) && $logged_in !='' ): ?>
                                        <p>Welcome <?php echo $user['strUsername']; ?></p>
                                        <a href="<?php echo base_url() ?>users/logout">Logout</a>
                                    <?php else: ?>
                                        <a href="<?php echo base_url() ?>login">Login</a>
                                        <a href="<?php echo base_url() ?>users/signup">Register</a>
                                    <?php endif; ?>
                                </div>
                            </div>
                        </a>
                        
                        </li>
							<li class="inner-nav"><a href="#home" class="scroll-to-Top" target="_top"><img src="<?php echo base_url().'assets/themes/pinoytuner/images/pt-big-logo-emb-white.png';?>" width="22px" height="24px"/></a></li>
                            <?php if(!empty($dig_feeds)): ?>
							<li class="inner-nav">
								<a href="#dig"  class="scroll-to" id="dig-nav-link">
									<p class="nav">DIGRADIO.PH</p>
								</a>
							</li>
                            <?php endif; ?>
                            <?php if(!empty($planet_feeds)): ?>
							<li class="inner-nav">
								<a href="#planetjazz" class="scroll-to" id="jazz-nav-link">
									<p class="nav">PLANETJAZZ.PH</p>
								</a>
							</li>
                            <?php endif; ?>
                            <?php if(!empty($rice_feeds)): ?>
							<li class="inner-nav">
								<a href="#riceradio" class="scroll-to" id="rice-nav-link">
									<p class="nav">RICERADIO.PH</p>
								</a>
							</li>
                            <?php endif; ?>
                            <?php if(!empty($yo_feeds)): ?>
							<li class="inner-nav">
								<a href="#yoradio" class="scroll-to" id="yo-nav-link">
									<p class="nav">YORADIO.PH</p>
								</a>
							</li>	
                            <?php endif; ?>
						<!--	
                        <li>
									<a href="#">
										<img src="<?php echo base_url().'assets/themes/pinoytuner/images/redpass.png' ?>">
									</a>
							</li>
                        -->
					</ul>
				</div>
			</div>
		</div>
	</div>
<div id="container">
	
			<!---CONTAINER--->
				<div class="grid-960">
					<div id="home">&nbsp;</div>
					<div id="home-view">
						<img src="<?php echo base_url().'assets/themes/pinoytuner/images/pt-big-logo.png';?>" height="42px" width="432px" />
					</div>
				</div>
				<div class="grid-960">
					<div id="social-media-links">
						<ul id="social-media-list">
							<li>
								<a href="https://www.facebook.com/pinoytuner/" target="_blank">
									<img src="<?php echo base_url().'assets/themes/pinoytuner/images/social_fb.png';?>" height="35" width="35" />
								</a>
							</li>
							<li>
								<a href="https://www.twitter.com/pinoytuner/" target="_blank">
									<img src="<?php echo base_url().'assets/themes/pinoytuner/images/social_twitter.png';?>" height="35" width="35" />
								</a>
							</li>
							<li>
								<a href="https://www.youtube.com/pinoytuner/" target="_blank">
									<img src="<?php echo base_url().'assets/themes/pinoytuner/images/social_youtube.png';?>" height="35" width="35" />
								</a>
							</li>
							<li>
								<a href="https://plus.google.com/116142077641090112207" target="_blank">
									<img src="<?php echo base_url().'assets/themes/pinoytuner/images/social_gplus.png';?>" height="35" width="35" />
								</a>
							</li>
						</ul>
					</div>
				</div>
                <!-----------DIGRADIO------------->
                 <?php if(!empty($dig_feeds)): ?>    
				<div class="community-container" id="dig-container">
					<div id="dig"></div>
					<div id="digradio">
					</div>
					
					<div class="overlap">
						<div id="redbar">
						</div>
						<div class="grid-960">
							<a href="<?php echo base_url().'';?>digradio" class="community-tooltip" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="go to digradio">
                                <img class="community-img" src="<?php echo base_url().'assets/themes/pinoytuner/images/communities_dig-u359.png';?>" height="160" width="160" /> 
                            </a>
                             <a class="player-button" target=""  href="#"  onclick = "window.open('<?php echo base_url().'player/load_player/digradio'  ?>','Player','directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=600,height=600,left='+(screen.availWidth/2-350)+',top='+(screen.availHeight/2-250)+'');return false;" >
						<img src="<?php echo base_url().'assets/themes/pinoytuner/images/dig_play_btn.png';?>" id="ply" />
					   </a>
						</div>
						<div class="community-border"></div>
                       
                        
						<div class="grid-960 community-content">
							<div id="digcarousel" class="carousel slide community-carousel">
								<div class="carousel-controls f-right">
									<a class="community-carousel-ctrl" href="#digcarousel" data-slide="prev">&lsaquo;</a>
									<a class="community-carousel-ctrl" href="#digcarousel" data-slide="next">&rsaquo;</a>
								</div>
								<div class="clear"></div>
								<div class="carousel-inner">
										<?php 
									$ctr = 1;
									foreach($dig_feeds as $feed):							
										$date = strtotime($feed['dteStart']);
										$date = date('l, F j Y',$date);
									?>
									<div class="<?php echo $ctr==1?'active':''; ?> item">
										<div class="image-content f-left">
										<img src="<?php echo IMAGE_UPLOAD_DIR.$feed['strPicture']; ?>" />
										</div>
										<div class="community-text f-left">
											<div class="title-category">
												<h3>
													<?php echo get_name_from_id($feed['fk-tb_mas_content_types'],'tb_mas_content_types'); ?>
												</h3>
											</div>
											<div class="title-content">
												<h3>
                                                   <a href="<?php echo base_url().'digradio/content/'.get_type_name($feed['fk-tb_mas_content_types']).'/'.$feed['intID'].'/'.simplify_title($feed['strTitle']); ?>">
													<?php echo $feed['strTitle']; ?>
                                                    </a>
												</h3>
											</div>
											<div class="author-content">
												<h3>
													By <?php echo ($feed['strAuthor']!=''?$feed['strAuthor']:'Pinoytuner'); ?> on <?php echo $date;  ?>
												</h3>
											</div>
											<div class="secondary-content">
											   <?php echo $feed['strSecondary']; ?>
											</div>
											<div class="home-read-more">
												<a href="<?php echo base_url().'digradio/content/'.get_type_name($feed['fk-tb_mas_content_types']).'/'.$feed['intID'].'/'.simplify_title($feed['strTitle']); ?>">read more</a>
											</div>
										</div>
										<div class="clear"></div>
									</div>
									<?php 
									$ctr++;
									endforeach; ?>
								</div>
								<img src="<?php echo $img_dir.'bg.png' ?>">
							</div>
						</div>
						<div class="community-border community-border-bottom"></div>
					</div>
				</div>
				<?php endif; ?>
				<!--Planet Jazz--->
				 <?php if(!empty($planet_feeds)): ?>
				<div class="community-container">
					<div id="planetjazz"></div>
					<div id="planet">
					</div>
					
					<div class="overlap">
						<div id="bluebar">
						</div>
						<div class="grid-960">
							<a href="<?php echo base_url().'';?>planetjazz" class="community-tooltip" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="go to planetjazz">
								<img class="community-img" src="<?php echo base_url().'assets/themes/pinoytuner/images/PT-PJ-logo-white-.png';?>" height="160" width="160" />
							</a>
                            <a class="pj-player" target=""  href="#"  onclick = "window.open('<?php echo base_url().'player/load_player/planetjazz'  ?>','Player','directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=600,height=600,left='+(screen.availWidth/2-350)+',top='+(screen.availHeight/2-250)+'');return false;" >
						<img src="<?php echo base_url().'assets/themes/pinoytuner/images/jazz_play_btn.png';?>" id="ply" />
					   </a>
						</div>
						<div class="community-border"></div>
						<div class="grid-960 community-content">
							<div id="planetcarousel" class="carousel slide community-carousel">
								<div class="carousel-controls f-right">
									<a class="community-carousel-ctrl" href="#planetcarousel" data-slide="prev">&lsaquo;</a>
									<a class="community-carousel-ctrl" href="#planetcarousel" data-slide="next">&rsaquo;</a>
								</div>
								<div class="clear"></div>
								<div class="carousel-inner">
										<?php 
									$ctr = 1;
									foreach($planet_feeds as $feed):							
									?>
									<div class="<?php echo $ctr==1?'active':''; ?> item">
										<div class="image-content f-left">
										<img src="<?php echo IMAGE_UPLOAD_DIR.$feed['strPicture']; ?>" />
										</div>
										<div class="community-text f-left planetjazz">
											<div class="title-category">
												<h3>
													<?php echo get_name_from_id($feed['fk-tb_mas_content_types'],'tb_mas_content_types'); ?>
												</h3>
											</div>
											<div class="title-content">
												<h3>
                                                    <a href="<?php echo base_url().'planetjazz/content/'.get_type_name($feed['fk-tb_mas_content_types']).'/'.$feed['intID'].'/'.simplify_title($feed['strTitle']); ?>">
													<?php echo $feed['strTitle']; ?>
                                                        </a>
												</h3>
											</div>
											<div class="author-content">
												<h3>
													By <?php echo ($feed['strAuthor']!=''?$feed['strAuthor']:'Pinoytuner'); ?> on <?php echo $date;  ?>
												</h3>
											</div>
											<div class="secondary-content">
											   <?php echo $feed['strSecondary']; ?>
											</div>
											<div class="home-read-more">
												<a href="<?php echo base_url().'planetjazz/content/'.get_type_name($feed['fk-tb_mas_content_types']).'/'.$feed['intID'].'/'.simplify_title($feed['strTitle']); ?>">read more</a>
											</div>
										</div>
										<div class="clear"></div>
									</div>
									<?php 
									$ctr++;
									endforeach; ?>
								</div>
								<img src="<?php echo $img_dir.'bg.png' ?>">
							</div>
						</div>
						<div class="community-border community-border-bottom"></div>
					</div>
				</div>
                <?php endif; ?>
				<!--Rice Radio--->
                 <?php if(!empty($rice_feeds)): ?>    
			<div class="community-container">
					<div id="riceradio"></div>
					<div id="rice"></div>
					<div class="overlap">
						<div class="grid-960">
							<a href="<?php echo base_url().'';?>riceradio" class="community-tooltip" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="go to riceradio">
                                <img class="community-img" src="<?php echo base_url().'assets/themes/pinoytuner/images/PT-rice-logo.png';?>"/>
                            </a>
                            <a class="player-button" target=""  href="#"  onclick = "window.open('<?php echo base_url().'player/load_player/riceradio'  ?>','Player','directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=600,height=600,left='+(screen.availWidth/2-350)+',top='+(screen.availHeight/2-250)+'');return false;" >
						<img src="<?php echo base_url().'assets/themes/pinoytuner/images/rice_play_btn.png';?>" id="ply" />
					   </a>
						</div>
						<div class="rice-border"></div>
						<div class="grid-960 yellow-content">
							<div id="ricecarousel" class="carousel slide community-carousel">
								<div class="carousel-controls f-right">
									<a class="community-carousel-ctrl" href="#ricecarousel" data-slide="prev">&lsaquo;</a>
									<a class="community-carousel-ctrl" href="#ricecarousel" data-slide="next">&rsaquo;</a>
								</div>
								<div class="clear"></div>
								<div class="carousel-inner">
										<?php 
									$ctr = 1;
									foreach($rice_feeds as $feed):							
										$date = strtotime($feed['dteStart']);
										$date = date('l, F j Y',$date);
									?>
									<div class="<?php echo $ctr==1?'active':''; ?> item">
										<div class="image-content f-left">
										<img src="<?php echo IMAGE_UPLOAD_DIR.$feed['strPicture']; ?>" />
										</div>
										<div class="community-text f-left riceradio">
											<div class="title-category">
												<h3>
													<?php echo get_name_from_id($feed['fk-tb_mas_content_types'],'tb_mas_content_types'); ?>
												</h3>
											</div>
											<div class="title-content">
												<h3>
                                                   <a href="<?php echo base_url().'riceradio/content/'.get_type_name($feed['fk-tb_mas_content_types']).'/'.$feed['intID'].'/'.simplify_title($feed['strTitle']); ?>">
													<?php echo $feed['strTitle']; ?>
                                                        </a>
												</h3>
											</div>
											<div class="author-content">
												<h3>
													By <?php echo ($feed['strAuthor']!=''?$feed['strAuthor']:'Pinoytuner'); ?> on <?php echo $date;  ?>
												</h3>
											</div>
											<div class="secondary-content">
											   <?php echo $feed['strSecondary']; ?>
											</div>
											<div class="home-read-more">
												<a href="<?php echo base_url().'riceradio/content/'.get_type_name($feed['fk-tb_mas_content_types']).'/'.$feed['intID'].'/'.simplify_title($feed['strTitle']); ?>">read more</a>
											</div>
										</div>
										<div class="clear"></div>
									</div>
									<?php 
									$ctr++;
									endforeach; ?>
								</div>
								<img src="<?php echo $img_dir.'bg.png' ?>">
							</div>
						</div>
						<div class="community-border yellow-border-bottom"></div>
					</div>
				</div>
                <?php endif; ?>
				<!--yoradio--->
				 <?php if(!empty($yo_feeds)): ?>
			<div class="community-container">
					<div id="yoradio">
					</div>
					<div id="yo"></div>
					<div class="overlap">
						<div class="grid-960">
							<a href="<?php echo base_url().'';?>yoradio" class="community-tooltip" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="go to yoradio">
                                <img class="community-img" src="<?php echo base_url().'assets/themes/pinoytuner/images/communities_yo-u392.png';?>" height="160" width="160" /> 
                            </a>
                            <a class="player-button" target=""  href="#"  onclick = "window.open('<?php echo base_url().'player/load_player/yoradio'  ?>','Player','directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=600,height=600,left='+(screen.availWidth/2-350)+',top='+(screen.availHeight/2-250)+'');return false;" >
						<img src="<?php echo base_url().'assets/themes/pinoytuner/images/yo_play_btn.png';?>" id="ply" />
					   </a>
						</div>
						<div class="yo-border"></div>
						<div class="grid-960 community-content">
							<div id="yocarousel" class="carousel slide community-carousel">
								<div class="carousel-controls f-right">
									<a class="community-carousel-ctrl" href="#yocarousel" data-slide="prev">&lsaquo;</a>
									<a class="community-carousel-ctrl" href="#yocarousel" data-slide="next">&rsaquo;</a>
								</div>
								<div class="clear"></div>
								<div class="carousel-inner">
										<?php 
									$ctr = 1;
									foreach($yo_feeds as $feed):							
										$date = strtotime($feed['dteStart']);
										$date = date('l, F j Y',$date);
									?>
									<div class="<?php echo $ctr==1?'active':''; ?> item">
										<div class="image-content f-left">
										<img src="<?php echo IMAGE_UPLOAD_DIR.$feed['strPicture']; ?>" />
										</div>
										<div class="community-text f-left yoradio">
											<div class="title-category">
												<h3>
													<?php echo get_name_from_id($feed['fk-tb_mas_content_types'],'tb_mas_content_types'); ?>
												</h3>
											</div>
											<div class="title-content">
												<h3>
                                                    <a href="<?php echo base_url().'yoradio/content/'.get_type_name($feed['fk-tb_mas_content_types']).'/'.$feed['intID'].'/'.simplify_title($feed['strTitle']); ?>">
													<?php echo $feed['strTitle']; ?>
                                                    </a>
												</h3>
											</div>
											<div class="author-content">
												<h3>
													By <?php echo ($feed['strAuthor']!=''?$feed['strAuthor']:'Pinoytuner'); ?> on <?php echo $date;  ?>
												</h3>
											</div>
											<div class="secondary-content">
											   <?php echo $feed['strSecondary']; ?>
											</div>
											<div class="home-read-more">
												<a href="<?php echo base_url().'yoradio/content/'.get_type_name($feed['fk-tb_mas_content_types']).'/'.$feed['intID'].'/'.simplify_title($feed['strTitle']); ?>">read more</a>
											</div>
										</div>
										<div class="clear"></div>
									</div>
									<?php 
									$ctr++;
									endforeach; ?>
								</div>
								<img src="<?php echo $img_dir.'bg.png' ?>">
							</div>
						</div>
						<div class="community-border orange-border-bottom"></div>
					</div>
				</div>
                <?php endif; ?>
				<div class="grid-960">
					<div id="social-media-links-bottom">
						<ul id="social-media-list">
							<li>
								 <a  target="_blank" href="<a href="https://www.facebook.com/pinoytuner/" target="edv _blank">
									<img src="<?php echo base_url().'assets/themes/pinoytuner/images/social_fb.png';?>" height="35" width="35" />
								</a>
							</li>
							<li>
								<a href="#">
									<img src="<?php echo base_url().'assets/themes/pinoytuner/images/social_twitter.png';?>" height="35" width="35" />
								</a>
							</li>
							<li>
								<a href="#">
									<img src="<?php echo base_url().'assets/themes/pinoytuner/images/social_youtube.png';?>" height="35" width="35" />
								</a>
							</li>
							<li>
								<a href="#">
									<img src="<?php echo base_url().'assets/themes/pinoytuner/images/social_gplus.png';?>" height="35" width="35" />
								</a>
							</li>
						</ul>
					</div>
				</div>
			<!---CONTAINER--->
</div><!-- /container -->
                                                                                                                                    
                                                                                                                                
                                                                                                                                    
</body>
                                                                                                                                                 
                                                                                                                                
    